import { useState } from "react"

export default function cameraModel() {
  const [jointImage, setJointImage] = useState<string | null>(null)
  const [countImage, setCountImage] = useState<string | null>(null)
  const [checkImage, setCheckImage] = useState<string | null>(null)

  const updateImages = (data: {
    jointImage?: string
    countImage?: string
    checkImage?: string
  }) => {
    if (data.jointImage) setJointImage(data.jointImage)
    if (data.countImage) setCountImage(data.countImage)
    if (data.checkImage) setCheckImage(data.checkImage)
  }

  return {
    jointImage,
    countImage,
    checkImage,
    updateImages
  }
}
